import request from '@/utils/request'

// 查询销售发货单列表
export function listSaleDelivery(query) {
  return request({
    url: '/scm/saleDelivery/list',
    method: 'get',
    params: query
  })
}

// 查询销售发货单详细
export function getSaleDelivery(id) {
  return request({
    url: '/scm/saleDelivery/' + id,
    method: 'get'
  })
}

// 新增销售发货单
export function addSaleDelivery(data) {
  return request({
    url: '/scm/saleDelivery',
    method: 'post',
    data: data
  })
}

// 修改销售发货单
export function updateSaleDelivery(data) {
  return request({
    url: '/scm/saleDelivery',
    method: 'put',
    data: data
  })
}

// 删除销售发货单
export function delSaleDelivery(id) {
  return request({
    url: '/scm/saleDelivery/' + id,
    method: 'delete'
  })
}

// 导出销售发货单
export function exportSaleDelivery(query) {
  return request({
    url: '/scm/saleDelivery/export',
    method: 'get',
    params: query
  })
}